/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;


/**
 * <!-- begin-user-doc -->
 * A representation of the model object '<em><b>CR</b></em>'.
 * <!-- end-user-doc -->
 *
 * <!-- begin-model-doc -->
 * 
 *             A concept qualifier code with optionally named role.
 *             Both qualifier role and value codes must be defined by
 *             the coding system.  For example, if SNOMED RT defines a
 *             concept "leg", a role relation "has-laterality", and
 *             another concept "left", the concept role relation allows
 *             to add the qualifier "has-laterality: left" to a primary
 *             code "leg" to construct the meaning "left leg".
 *          
 * <!-- end-model-doc -->
 *
 * <p>
 * The following features are supported:
 * <ul>
 *   <li>{@link org.hl7.v3.CR#getName <em>Name</em>}</li>
 *   <li>{@link org.hl7.v3.CR#getValue <em>Value</em>}</li>
 *   <li>{@link org.hl7.v3.CR#isInverted <em>Inverted</em>}</li>
 * </ul>
 * </p>
 *
 * @see org.hl7.v3.V3Package#getCR()
 * @model extendedMetaData="name='CR' kind='elementOnly'"
 * @generated
 */
public interface CR extends ANY {
	/**
	 * Returns the value of the '<em><b>Name</b></em>' containment reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * <!-- begin-model-doc -->
	 * 
	 *                         Specifies the manner in which the concept role value
	 *                         contributes to the meaning of a code phrase.  For
	 *                         example, if SNOMED RT defines a concept "leg", a role
	 *                         relation "has-laterality", and another concept "left",
	 *                         the concept role relation allows to add the qualifier
	 *                         "has-laterality: left" to a primary code "leg" to
	 *                         construct the meaning "left leg".  In this example
	 *                         "has-laterality" is .
	 *                      
	 * <!-- end-model-doc -->
	 * @return the value of the '<em>Name</em>' containment reference.
	 * @see #setName(CV)
	 * @see org.hl7.v3.V3Package#getCR_Name()
	 * @model containment="true"
	 *        extendedMetaData="kind='element' name='name' namespace='##targetNamespace'"
	 * @generated
	 */
	CV getName();

	/**
	 * Sets the value of the '{@link org.hl7.v3.CR#getName <em>Name</em>}' containment reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Name</em>' containment reference.
	 * @see #getName()
	 * @generated
	 */
	void setName(CV value);

	/**
	 * Returns the value of the '<em><b>Value</b></em>' containment reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * <!-- begin-model-doc -->
	 * 
	 *                         The concept that modifies the primary code of a code
	 *                         phrase through the role relation.  For example, if
	 *                         SNOMED RT defines a concept "leg", a role relation
	 *                         "has-laterality", and another concept "left", the
	 *                         concept role relation allows adding the qualifier
	 *                         "has-laterality: left" to a primary code "leg" to
	 *                         construct the meaning "left leg".  In this example
	 *                         "left" is .
	 *                      
	 * <!-- end-model-doc -->
	 * @return the value of the '<em>Value</em>' containment reference.
	 * @see #setValue(CD)
	 * @see org.hl7.v3.V3Package#getCR_Value()
	 * @model containment="true"
	 *        extendedMetaData="kind='element' name='value' namespace='##targetNamespace'"
	 * @generated
	 */
	CD getValue();

	/**
	 * Sets the value of the '{@link org.hl7.v3.CR#getValue <em>Value</em>}' containment reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Value</em>' containment reference.
	 * @see #getValue()
	 * @generated
	 */
	void setValue(CD value);

	/**
	 * Returns the value of the '<em><b>Inverted</b></em>' attribute.
	 * The default value is <code>"false"</code>.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * <!-- begin-model-doc -->
	 * 
	 *                      Indicates if the sense of the role name is inverted.
	 *                      This can be used in cases where the underlying code
	 *                      system defines inversion but does not provide reciprocal
	 *                      pairs of role names. By default, inverted is false.
	 *                   
	 * <!-- end-model-doc -->
	 * @return the value of the '<em>Inverted</em>' attribute.
	 * @see #isSetInverted()
	 * @see #unsetInverted()
	 * @see #setInverted(boolean)
	 * @see org.hl7.v3.V3Package#getCR_Inverted()
	 * @model default="false" unsettable="true" dataType="org.hl7.v3.Bn"
	 *        extendedMetaData="kind='attribute' name='inverted'"
	 * @generated
	 */
	boolean isInverted();

	/**
	 * Sets the value of the '{@link org.hl7.v3.CR#isInverted <em>Inverted</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Inverted</em>' attribute.
	 * @see #isSetInverted()
	 * @see #unsetInverted()
	 * @see #isInverted()
	 * @generated
	 */
	void setInverted(boolean value);

	/**
	 * Unsets the value of the '{@link org.hl7.v3.CR#isInverted <em>Inverted</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #isSetInverted()
	 * @see #isInverted()
	 * @see #setInverted(boolean)
	 * @generated
	 */
	void unsetInverted();

	/**
	 * Returns whether the value of the '{@link org.hl7.v3.CR#isInverted <em>Inverted</em>}' attribute is set.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @return whether the value of the '<em>Inverted</em>' attribute is set.
	 * @see #unsetInverted()
	 * @see #isInverted()
	 * @see #setInverted(boolean)
	 * @generated
	 */
	boolean isSetInverted();

} // CR
